export default {
  namespaced: true,
  state: {
    electricity: 0,
    info: { count: 0 },
  },
  getters: {},
  actions: {},
  mutations: {
    setElectricity(state, value) {
      state.electricity = value;
    },
    setInfo(state, value) {
      state.info = {...state.info,...value};
      state.info.count++; // 每次切换增加标记
      // state.info.count = 0; // 重置计数器
    },
    addCount(state) {
      state.info.count++; // 每次切换增加标记
      // console.log(`进入系统页面第${state.info.count}次`);
    },
  },
  modules: {},
};
